		<div id="filter-div" class="small-3 columns hide-for-small">
			<div class="column-left">
				<div class="box" id="filter-group">
					<ul class="box-filter">
						<li>
							<span id="filter-group8"><a href="#" id="filter-group8-a"></a></span>
								<dl>
									<?php for ($c = 0; $c < count($filter_groups) - 1; ++$c) { ?>
								
									<dt><p><a>+ <?php echo ($filter_groups[$c]['name']); ?></a></p></dt>
									<dd>
										<ul class="filter-node first">
											<?php foreach (($filter_groups[$c]['filter']) as $filter) { ?>
												<p><a id="filter-<?php echo $filter['filter_id']; ?>" href="<?php echo $action; ?>&filter=<?php echo $filter['filter_id']; ?>">- <?php echo $filter['name']; ?></a></p>
											<?php } ?>
										</ul>
									</dd>
									
									<?php } ?>

								</dl>
						</li>
					</ul>

				</div>
				<div class="box" id="filter-age">
					<div class="box-content">
						<ul class="box-filter">
							<li>
								<span id="filter-group8"><?php echo ($filter_groups[count($filter_groups)-1]['name']); ?></span>
								
									<?php foreach ($filter_groups[count($filter_groups)-1]['filter'] as $filter) { ?>
										<?php if (in_array($filter['filter_id'], $filter_category)) { ?>
											<li>
												<label>
												<input type="checkbox" value="<?php echo $filter['filter_id']; ?>" id="filter<?php echo $filter['filter_id']; ?>" checked="checked" />
												<?php echo $filter['name']; ?></label>
											</li>
										<?php } else { ?>
											<li>
												<label>
												<input type="checkbox" value="<?php echo $filter['filter_id']; ?>" id="filter<?php echo $filter['filter_id']; ?>" />
												<?php echo $filter['name']; ?></label>
											</li>
										<?php } ?>
									<?php } ?>																
							</li>
						</ul>
					</div>
				</div>
			</div>
			<div id="filter-title" style="display:none"><?php echo $heading_title; ?></div>
			<script> <!-- for cosllaped filter -->
			function getURLParameter(name) {
					return decodeURI(
							(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
					);
			}
			
			 String.prototype.replaceAt=function(index, character) {
					return this.substr(0, index) + character + this.substr(index+character.length);
			 }
			$('#filter-group8-a').html($('#banner-big').html());
			$('#filter-group8-a').attr('href',$('#pagetitlehref').attr('href'));
			$('#filter-navigator').html($('#filter-title').html());
			$(document).ready(function() {
				$('dd').hide();
				$('dt').click( function() {
					var toggle = jQuery(this).nextUntil('dt');
					toggle.slideToggle();
					jQuery('dd').not(toggle).slideUp();
				});
				
				$('#filter-age input[type=checkbox]').click(function() {
					var filter = new Array();
					$('#filter-age input[type=checkbox]').each(function() {
							var obj = $(this);
							if (obj.is(':checked')) {
								filter.push(obj.val())
							}
					});
					location = '<?php echo $action; ?>&filter=' + filter.join(',');
				});
				$('#alt-filter-age input[type=checkbox]').click(function() {
					var filter = new Array();
					$('#alt-filter-age input[type=checkbox]').each(function() {
							var obj = $(this);
							if (obj.is(':checked')) {
								filter.push(obj.val())
							}
					});
					location = '<?php echo $action; ?>&filter=' + filter.join(',');
				});
				
				
				
				if (getURLParameter('filter')=='null') {
					$('#alt-filter dt')[0].click();
					$('#filter-div dt')[0].click();
					$('#filter-group8').addClass('viewingfilter');
				} else {
					$('#alt-filter #filter-' + getURLParameter('filter')).addClass('viewingfilter');
					$('#alt-filter #filter-' + getURLParameter('filter')).parents('dd').prev().click()
					
					$('#filter-div #filter-' + getURLParameter('filter')).addClass('viewingfilter');
					$('#filter-div #filter-' + getURLParameter('filter')).parents('dd').prev().click()
				}
			});
			</script>
		</div>
